﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A7D RID: 2685
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyInviteScRsp : IMessage<LobbyInviteScRsp>, IMessage, IEquatable<LobbyInviteScRsp>, IDeepCloneable<LobbyInviteScRsp>, IBufferMessage
	{
		// Token: 0x170021E9 RID: 8681
		// (get) Token: 0x0600782A RID: 30762 RVA: 0x0014118C File Offset: 0x0013F38C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyInviteScRsp> Parser
		{
			get
			{
				return LobbyInviteScRsp._parser;
			}
		}

		// Token: 0x170021EA RID: 8682
		// (get) Token: 0x0600782B RID: 30763 RVA: 0x00141193 File Offset: 0x0013F393
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyInviteScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021EB RID: 8683
		// (get) Token: 0x0600782C RID: 30764 RVA: 0x001411A5 File Offset: 0x0013F3A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyInviteScRsp.Descriptor;
			}
		}

		// Token: 0x0600782D RID: 30765 RVA: 0x001411AC File Offset: 0x0013F3AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScRsp()
		{
		}

		// Token: 0x0600782E RID: 30766 RVA: 0x001411BF File Offset: 0x0013F3BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScRsp(LobbyInviteScRsp other) : this()
		{
			this.uidList_ = other.uidList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600782F RID: 30767 RVA: 0x001411F5 File Offset: 0x0013F3F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyInviteScRsp Clone()
		{
			return new LobbyInviteScRsp(this);
		}

		// Token: 0x170021EC RID: 8684
		// (get) Token: 0x06007830 RID: 30768 RVA: 0x001411FD File Offset: 0x0013F3FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UidList
		{
			get
			{
				return this.uidList_;
			}
		}

		// Token: 0x170021ED RID: 8685
		// (get) Token: 0x06007831 RID: 30769 RVA: 0x00141205 File Offset: 0x0013F405
		// (set) Token: 0x06007832 RID: 30770 RVA: 0x0014120D File Offset: 0x0013F40D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06007833 RID: 30771 RVA: 0x00141216 File Offset: 0x0013F416
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyInviteScRsp);
		}

		// Token: 0x06007834 RID: 30772 RVA: 0x00141224 File Offset: 0x0013F424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyInviteScRsp other)
		{
			return other != null && (other == this || (this.uidList_.Equals(other.uidList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007835 RID: 30773 RVA: 0x00141274 File Offset: 0x0013F474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.uidList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007836 RID: 30774 RVA: 0x001412C1 File Offset: 0x0013F4C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007837 RID: 30775 RVA: 0x001412C9 File Offset: 0x0013F4C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007838 RID: 30776 RVA: 0x001412D4 File Offset: 0x0013F4D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.uidList_.WriteTo(ref output, LobbyInviteScRsp._repeated_uidList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007839 RID: 30777 RVA: 0x00141324 File Offset: 0x0013F524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.uidList_.CalculateSize(LobbyInviteScRsp._repeated_uidList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600783A RID: 30778 RVA: 0x00141378 File Offset: 0x0013F578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyInviteScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.uidList_.Add(other.uidList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600783B RID: 30779 RVA: 0x001413C5 File Offset: 0x0013F5C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600783C RID: 30780 RVA: 0x001413D0 File Offset: 0x0013F5D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U && num != 58U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.uidList_.AddEntriesFrom(ref input, LobbyInviteScRsp._repeated_uidList_codec);
				}
			}
		}

		// Token: 0x04002DFC RID: 11772
		private static readonly MessageParser<LobbyInviteScRsp> _parser = new MessageParser<LobbyInviteScRsp>(() => new LobbyInviteScRsp());

		// Token: 0x04002DFD RID: 11773
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002DFE RID: 11774
		public const int UidListFieldNumber = 7;

		// Token: 0x04002DFF RID: 11775
		private static readonly FieldCodec<uint> _repeated_uidList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x04002E00 RID: 11776
		private readonly RepeatedField<uint> uidList_ = new RepeatedField<uint>();

		// Token: 0x04002E01 RID: 11777
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04002E02 RID: 11778
		private uint retcode_;
	}
}
